package com.dawn.module.mp.controller.admin.msgtemplatelog.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 模板消息记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MsgTemplateLogRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27773")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "appid", requiredMode = Schema.RequiredMode.REQUIRED, example = "19607")
    @ExcelProperty("appid")
    private String appid;

    @Schema(description = "accountId")
    private String accountId;

    @Schema(description = "用户openid")
    @ExcelProperty("用户openid")
    private String touser;

    @Schema(description = "templateid", example = "24944")
    @ExcelProperty("templateid")
    private String templateId;

    @Schema(description = "消息数据")
    @ExcelProperty("消息数据")
    private JSONArray data;

    @Schema(description = "消息链接", example = "https://www.ynzykj.net")
    @ExcelProperty("消息链接")
    private String url;

    @Schema(description = "小程序信息")
    @ExcelProperty("小程序信息")
    private JSONObject miniprogram;

    @Schema(description = "发送时间")
    @ExcelProperty("发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "发送结果")
    @ExcelProperty("发送结果")
    private String sendResult;

    @Schema(description = "发送状态", example = "2")
    @ExcelProperty("发送状态")
    private Boolean status;

    @Schema(description = "模板消息")
    @ExcelProperty("模板消息")
    private String message;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
